package com.example.sh_crosses.game;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.widget.TextView;

import com.example.sh_crosses.R;
import com.example.sh_crosses.base.BaseActivity;
import com.example.sh_crosses.db.RecordDao;

public class StatMent extends BaseActivity {
    @SuppressLint("DefaultLocale")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_stat);

        TextView tvCount = findViewById(R.id.game_count);
        tvCount.setText(String.format("游戏次数：%s次", RecordDao.getInstance().query().size()<=0?"0":RecordDao.getInstance().query().get(0)));
    }

    @Override
    protected void onPause() {
        super.onPause();
        overridePendingTransition(R.anim.slide_in_from_left, R.anim.slide_out_from_left);
    }
}
